<?php

function protobufc2array(\Google\Protobuf\Internal\Message $class){
    return json_decode($class->serializeToJsonString(),true);
}